package cn.xtcode.infrastructure.dao;

import cn.xtcode.infrastructure.dao.po.GroupBuyOrderList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @Author xt-code
* @Description:
* @Create 2025/5/9 17:34 
*/
@Mapper
public interface GroupBuyOrderListMapper {
    /**
     * 插入数据
     */
    void insert(GroupBuyOrderList groupBuyOrderList);

    /**
     * 根据外部订单号查询状态
     */
    GroupBuyOrderList queryGroupBuyOrderRecordByOutTradeNo(GroupBuyOrderList groupBuyOrderList);

    /**
     * 查看用户是否参与过某项活动
     */
    Integer queryOrderCountByActivityIdAndUserId(GroupBuyOrderList groupBuyOrderListReq);

    int updateOrderStatus2COMPLETE(GroupBuyOrderList groupBuyOrderListReq);

    List<String> queryGroupBuyCompleteOrderOutTradeNoListByTeamId(String teamId);
}